package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcLongRangeServiceOrderCommentMapper;
import com.csun.cmny.provider.model.domain.OmcLongRangeServiceOrderComment;
import com.csun.cmny.provider.model.vo.longRangeServiceOrder.LongRangeServiceOrderCommentVo;
import com.csun.cmny.provider.service.OmcLongRangeServiceOrderCommentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
@Transactional
public class OmcLongRangeServiceOrderCommentServiceImpl extends BaseService<OmcLongRangeServiceOrderComment> implements OmcLongRangeServiceOrderCommentService {

    @Resource
    private OmcLongRangeServiceOrderCommentMapper commentMapper;

    @Override
    public List<LongRangeServiceOrderCommentVo> selectCommentsByOrderId(Long id) {
        return commentMapper.selectCommentsByOrderId(id);
    }
}
